#include "pauseMessage.h"

PauseMessage::PauseMessage(MtpProtocol* packet) : MtpMessage(packet)
{

}

PauseMessage::PauseMessage(const int64_t& movieId, const int& scene) : MtpMessage(new MtpProtocol(L"pause")),param(movieId,scene)
{

}

void PauseMessage::decodeBody()
{
	MtpMessage::decodeBody();
	param.jsonDeserialize(jsonContent);
}

void PauseMessage::encodeBody()
{
	jsonContent = param.jsonStr();
	MtpMessage::encodeBody();
}

const SceneParam& PauseMessage::getParam()
{
	return param;
}
